<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>GEVAPPapi测试报告</title>
    <meta name="generator" content="HTMLTestRunner 0.8.2"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    
<style type="text/css" media="screen">
body        { font-family: verdana, arial, helvetica, sans-serif; font-size: 80%; }
table       { font-size: 100%; }
pre         { }
/* -- heading ---------------------------------------------------------------------- */
h1 {
	font-size: 16pt;
	color: gray;
}
.heading {
    margin-top: 0ex;
    margin-bottom: 1ex;
}
.heading .attribute {
    margin-top: 1ex;
    margin-bottom: 0;
}
.heading .description {
    margin-top: 4ex;
    margin-bottom: 6ex;
}
/* -- css div popup ------------------------------------------------------------------------ */
a.popup_link {
}
a.popup_link:hover {
    color: red;
}
.popup_window {
    display: none;
    position: relative;
    left: 0px;
    top: 0px;
    /*border: solid #627173 1px; */
    padding: 10px;
    background-color: #E6E6D6;
    font-family: "Lucida Console", "Courier New", Courier, monospace;
    text-align: left;
    font-size: 8pt;
    width: 500px;
}
}
/* -- report ------------------------------------------------------------------------ */
#show_detail_line {
    margin-top: 3ex;
    margin-bottom: 1ex;
}
#result_table {
    width: 80%;
    border-collapse: collapse;
    border: 1px solid #777;
}
#header_row {
    font-weight: bold;
    color: white;
    background-color: #777;
}
#result_table td {
    border: 1px solid #777;
    padding: 2px;
}
#total_row  { font-weight: bold; }
.passClass  { background-color: #6c6; }
.failClass  { background-color: #c60; }
.errorClass { background-color: #c00; }
.passCase   { color: #6c6; }
.failCase   { color: #c60; font-weight: bold; }
.errorCase  { color: #c00; font-weight: bold; }
.hiddenRow  { display: none; }
.testcase   { margin-left: 2em; }
/* -- ending ---------------------------------------------------------------------- */
#ending {
}
</style>

</head>
<body>
<script language="javascript" type="text/javascript"><!--
output_list = Array();
/* level - 0:Summary; 1:Failed; 2:All */
function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;
        if (id.substr(0,2) == 'ft') {
            if (level < 1) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
        if (id.substr(0,2) == 'pt') {
            if (level > 1) {
                tr.className = '';
            }
            else {
                tr.className = 'hiddenRow';
            }
        }
    }
}
function showClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    for (var i = 0; i < count; i++) {
        tid0 = 't' + cid.substr(1) + '.' + (i+1);
        tid = 'f' + tid0;
        tr = document.getElementById(tid);
        if (!tr) {
            tid = 'p' + tid0;
            tr = document.getElementById(tid);
        }
        id_list[i] = tid;
        if (tr.className) {
            toHide = 0;
        }
    }
    for (var i = 0; i < count; i++) {
        tid = id_list[i];
        if (toHide) {
            document.getElementById('div_'+tid).style.display = 'none'
            document.getElementById(tid).className = 'hiddenRow';
        }
        else {
            document.getElementById(tid).className = '';
        }
    }
}
function showTestDetail(div_id){
    var details_div = document.getElementById(div_id)
    var displayState = details_div.style.display
    // alert(displayState)
    if (displayState != 'block' ) {
        displayState = 'block'
        details_div.style.display = 'block'
    }
    else {
        details_div.style.display = 'none'
    }
}
function html_escape(s) {
    s = s.replace(/&/g,'&amp;');
    s = s.replace(/</g,'&lt;');
    s = s.replace(/>/g,'&gt;');
    return s;
}
/* obsoleted by detail in <div>
function showOutput(id, name) {
    var w = window.open("", //url
                    name,
                    "resizable,scrollbars,status,width=800,height=450");
    d = w.document;
    d.write("<pre>");
    d.write(html_escape(output_list[id]));
    d.write("\n");
    d.write("<a href='javascript:window.close()'>close</a>\n");
    d.write("</pre>\n");
    d.close();
}
*/
--></script>
<div class='heading'>
<h1>GEVAPPapi测试报告</h1>
<p class='attribute'><strong>执行开始时间:</strong> 2021-10-30 15:34:29</p>
<p class='attribute'><strong>执行用时:</strong> 0:00:34.681911</p>
<p class='attribute'><strong>执行状态:</strong> 通过数 9 失败数 3 报错数 7</p>

<p class='description'>单元测试14</p>
</div>


<p id='show_detail_line'>展示方式
<a href='javascript:showCase(0)'>概览</a>
<a href='javascript:showCase(1)'>失败</a>
<a href='javascript:showCase(2)'>全部</a>
</p>
<table id='result_table'>
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row'>
    <td>测试集群/测试用例</td>
    <td>数量</td>
    <td>通过</td>
    <td>失败</td>
    <td>报错</td>
    <td>查看</td>
</tr>

<tr class='errorClass'>
    <td>test_case.test_http_request.TestHttpRequest</td>
    <td>19</td>
    <td>9</td>
    <td>3</td>
    <td>7</td>
    <td><a href="javascript:showClassDetail('c1',19)">详情</a></td>
</tr>

<tr id='ft1.1' class='none'>
    <td class='errorCase'><div class='testcase'>test_api_01</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.1')" >
        报错</a>
    <div id='div_ft1.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.1: 当前测试的用例是验证码发送成功
获取到的结果是{'timestamp': '2021-10-30T07:34:28.609+00:00', 'status': 500, 'error': 'Internal Server Error', 'message': '', 'path': '/appApi/member/sendRegistCode'}
请求数据是{'mobilephone': '15029827670'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '30', 'Content-Type': 'application/json'}
响应时间是0.086143
Traceback (most recent call last):
  File "E:\test\GEVapi\test_case\test_http_request.py", line 38, in test_api
    self.assertEqual(item['expected'], res.json()['code'])
KeyError: 'code'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\softwore\python\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "E:\test\GEVapi\test_case\test_http_request.py", line 49, in test_api
    TestResult, str(res.elapsed.total_seconds()))
NameError: name 'TestResult' is not defined


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='ft1.2' class='none'>
    <td class='errorCase'><div class='testcase'>test_api_02</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.2')" >
        报错</a>
    <div id='div_ft1.2' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.2').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.2: 当前测试的用例是用户已注册
获取到的结果是{'timestamp': '2021-10-30T07:34:28.795+00:00', 'status': 500, 'error': 'Internal Server Error', 'message': '', 'path': '/appApi/member/sendRegistCode'}
请求数据是{'mobilephone': '150298276870'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '31', 'Content-Type': 'application/json'}
响应时间是0.182596
Traceback (most recent call last):
  File "E:\test\GEVapi\test_case\test_http_request.py", line 38, in test_api
    self.assertEqual(item['expected'], res.json()['code'])
KeyError: 'code'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\softwore\python\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "E:\test\GEVapi\test_case\test_http_request.py", line 49, in test_api
    TestResult, str(res.elapsed.total_seconds()))
NameError: name 'TestResult' is not defined


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='ft1.3' class='none'>
    <td class='errorCase'><div class='testcase'>test_api_03</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.3')" >
        报错</a>
    <div id='div_ft1.3' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.3').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.3: 当前测试的用例是注册成功
获取到的结果是{'timestamp': '2021-10-30T07:34:28.944+00:00', 'status': 500, 'error': 'Internal Server Error', 'message': '', 'path': '/appApi/member/regist'}
请求数据是{'code': '938997', 'mobilephone': '15361661309', 'nickname': '哇咔咔', 'password': 'luhong888'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '107', 'Content-Type': 'application/json'}
响应时间是0.146317
Traceback (most recent call last):
  File "E:\test\GEVapi\test_case\test_http_request.py", line 38, in test_api
    self.assertEqual(item['expected'], res.json()['code'])
KeyError: 'code'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\softwore\python\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "E:\test\GEVapi\test_case\test_http_request.py", line 49, in test_api
    TestResult, str(res.elapsed.total_seconds()))
NameError: name 'TestResult' is not defined


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='pt1.4' class='hiddenRow'>
    <td class='none'><div class='testcase'>test_api_04</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.4')" >
        通过</a>
    <div id='div_pt1.4' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.4').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt1.4: 当前测试的用例是老用户登录
获取到的结果是{'code': 1, 'msg': '请求成功', 'data': {'userid': 20896051, 'token': 'NDUxQUFBRjc0MkIwNzZERjg4M0ZCRDQ2NkQ2Q0FDNzE1OEJBQUQ1OEQ4RDZFODM3Q0Y0REEwQkE3QTg1NEE5OTNDQzQyQzhDOTZEN0U5ODZBQzczRUI1OEFCODc3RjJGMjRFQ0U5NTY0MEZGM0U0N0FCMjk3MUQzRTQ0MzM2QjYwN0I1QzQ2MUU0RTA1REM3NDFFOUI2RUFBQURGMDA5RgGIANTGIANT'}}
请求数据是{'mobilephone': '18662650858', 'password': '123456', 'registrationid': '18662650858 ', 'systemcode': 'android'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '111', 'Content-Type': 'application/json'}
响应时间是0.18304


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='pt1.5' class='hiddenRow'>
    <td class='none'><div class='testcase'>test_api_05</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.5')" >
        通过</a>
    <div id='div_pt1.5' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.5').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt1.5: 当前测试的用例是ios登录成功
获取到的结果是{'code': 1, 'msg': '请求成功', 'data': {'userid': 20896475, 'token': 'Q0IwRjU4RUZDQTJGNDY5Rjg4NUFFMUJEMzlFNTk5RjE3NkIzMUIzQjc1NEUwRTg5MzU3NkI5NUI0MTU5RDg4MjNEOEY2MDBDOTc5NEJDMzVDQTEzQjgwMTYyQjdDNzRDNTUxRkI0MDdCOEI5QjdGOTA4NzdDQUQzNzVDRkM4RDUwREJDQ0UyN0RFNTgyQzJCMjYxMkZFOTUzODgwRjJCMQGIANTGIANT'}}
请求数据是{'mobilephone': '15361661309', 'password': 'luhong888', 'registrationid': '15361661309', 'systemcode': 'ios'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '109', 'Content-Type': 'application/json'}
响应时间是0.11246


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='pt1.6' class='hiddenRow'>
    <td class='none'><div class='testcase'>test_api_06</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.6')" >
        通过</a>
    <div id='div_pt1.6' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.6').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt1.6: 当前测试的用例是安卓登录成功
获取到的结果是{'code': 1, 'msg': '请求成功', 'data': {'userid': 20896337, 'token': 'NzI4RkM3Mzg2OEIwNjIxRDRFRURCMEE0OERBOTFFQkU4MEUxNDUzNDQ3MzkxQThGMEZGRDgzMDUyMkNENkZFODVGOUY4NTFFQTFCRjg2NzA2MkNGODE0REJGNEE2QTI3OUQxOUY1RDkwNzNFN0M3MTI1NzVCREExMTJERjAxOTczMTUyODAzODdDQjdFM0Y1QzI3NzRGNjA1ODc2NTkxRQGIANTGIANT'}}
请求数据是{'mobilephone': '15029827670', 'password': 'w123456', 'registrationid': '15029827670', 'systemcode': 'android'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '111', 'Content-Type': 'application/json'}
响应时间是0.116166


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='pt1.7' class='hiddenRow'>
    <td class='none'><div class='testcase'>test_api_07</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.7')" >
        通过</a>
    <div id='div_pt1.7' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.7').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt1.7: 当前测试的用例是退出登录成功
获取到的结果是{'code': 1, 'msg': '请求成功'}
请求数据是{}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'token': 'NjFEQ0IwOTIwMkJENTcwMUQ4QkY3QTAwRjI3NUQ3NUI2RkMwNTM3OTY0MzIyMEY3QTYyRDExMkRDNDEwOTI4REQ1MTI4MzQ1MDY1RUY0NEQzNzQ4RUM3MDY0MjEzODQwMjBEMzM5RUExRjhCQkZBQUJFQTI5OUYwMjM4OTk3MEEyMjk0Qzc5OTlGMTNFOUZBMzkwRDExQ0I5MUJBNUZEQgGIANTGIANT', 'Content-Length': '2', 'Content-Type': 'application/json'}
响应时间是0.071979


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='pt1.8' class='hiddenRow'>
    <td class='none'><div class='testcase'>test_api_08</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.8')" >
        通过</a>
    <div id='div_pt1.8' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.8').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt1.8: 当前测试的用例是token有效
获取到的结果是{'code': 1, 'msg': '请求成功'}
请求数据是{'token': 'NjFEQ0IwOTIwMkJENTcwMUQ4QkY3QTAwRjI3NUQ3NUI2RkMwNTM3OTY0MzIyMEY3QTYyRDExMkRDNDEwOTI4REQ1MTI4MzQ1MDY1RUY0NEQzNzQ4RUM3MDY0MjEzODQwMjBEMzM5RUExRjhCQkZBQUJFQTI5OUYwMjM4OTk3MEEyMjk0Qzc5OTlGMTNFOUZBMzkwRDExQ0I5MUJBNUZEQgGIANTGIANT'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '237', 'Content-Type': 'application/json'}
响应时间是0.089208


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='ft1.9' class='none'>
    <td class='failCase'><div class='testcase'>test_api_09</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.9')" >
        失败</a>
    <div id='div_ft1.9' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.9').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.9: 当前测试的用例是token失效
获取到的结果是{'code': 1, 'msg': '请求成功'}
请求数据是{'token': 'MURGOEM4RDJENUVGM0ZEMDdCQjE5MzQ5RjlEQjlGQkFGODI4NUFENTJFQTkwNzE1RkM1RjNDNTMxOTc3ODBCMEMzNjNCOTRENDE5ODY0NDA2M0Q5NjY4OTBEMUM2RjU3ODM5ODhBMEJEOURCMjUxNkUxREFENTJDRENCQjE1Nzc4ODQ5RUQ5RkEwN0RBQjFCQTA3RDgxNjQyRTQ4QTE5QgGIANTGIANT'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '237', 'Content-Type': 'application/json'}
响应时间是0.087483
执行用例出错：401 != 1
Traceback (most recent call last):
  File "D:\softwore\python\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "E:\test\GEVapi\test_case\test_http_request.py", line 43, in test_api
    raise e
  File "E:\test\GEVapi\test_case\test_http_request.py", line 38, in test_api
    self.assertEqual(item['expected'], res.json()['code'])
AssertionError: 401 != 1


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='ft1.10' class='none'>
    <td class='errorCase'><div class='testcase'>test_api_10</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.10')" >
        报错</a>
    <div id='div_ft1.10' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.10').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.10: 当前测试的用例是None
获取到的结果是{'timestamp': '2021-10-30T07:34:30.203+00:00', 'status': 500, 'error': 'Internal Server Error', 'message': '', 'path': '/appApi/member/editPassword'}
请求数据是{'code': '082867', 'mobilephone': '15029827670', 'newpassword': 'w123456'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '74', 'Content-Type': 'application/json'}
响应时间是0.141766
Traceback (most recent call last):
  File "D:\softwore\python\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "E:\test\GEVapi\test_case\test_http_request.py", line 38, in test_api
    self.assertEqual(item['expected'], res.json()['code'])
KeyError: 'code'


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='pt1.11' class='hiddenRow'>
    <td class='none'><div class='testcase'>test_api_11</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.11')" >
        通过</a>
    <div id='div_pt1.11' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.11').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt1.11: 当前测试的用例是验证码发送成功
获取到的结果是{'code': 1, 'msg': '请求成功', 'data': {'code': '976977'}}
请求数据是{'mobilephone': '15029827670'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '30', 'Content-Type': 'application/json'}
响应时间是0.361149


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='pt1.12' class='hiddenRow'>
    <td class='none'><div class='testcase'>test_api_12</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.12')" >
        通过</a>
    <div id='div_pt1.12' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.12').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt1.12: 当前测试的用例是令牌登录成功
获取到的结果是{'code': 1, 'msg': '请求成功', 'data': {'userid': 20896337, 'token': 'MjJBQTVGN0U5RTQyNzE1NURDQzI5Rjc4OEQxRkI5QkI4OUM1RkIwMTUwQzRGNUQwNzUzMkVGNkM1M0FDODA2MDRERDg0MUQwOERBMjJEQzI4RTM3MEU5NUE2M0JGQjgxMTVGMTIwRTg3Q0U4REVGQTQ2QzlFMzYxMjcwQ0QyQUMwQzBCOTdERDBGRDQ3MTgxRTAyNTVENkEwMUFDQkQ1MQGIANTGIANT'}}
请求数据是{'registrationid': '15029827670', 'systemcode': 'android', 'token': 'MjJBQTVGN0U5RTQyNzE1NURDQzI5Rjc4OEQxRkI5QkI4OUM1RkIwMTUwQzRGNUQwNzUzMkVGNkM1M0FDODA2MDRERDg0MUQwOERBMjJEQzI4RTM3MEU5NUE2M0JGQjgxMTVGMTIwRTg3Q0U4REVGQTQ2QzlFMzYxMjcwQ0QyQUMwQzBCOTdERDBGRDQ3MTgxRTAyNTVENkEwMUFDQkQ1MQGIANTGIANT', 'userid': 20896337}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Length': '315', 'Content-Type': 'application/json'}
响应时间是0.141851


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='pt1.13' class='hiddenRow'>
    <td class='none'><div class='testcase'>test_api_13</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.13')" >
        通过</a>
    <div id='div_pt1.13' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.13').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt1.13: 当前测试的用例是获取用户信息成功
获取到的结果是{'code': 1, 'msg': '请求成功', 'data': {'userid': 20896051, 'mobilephone': '18662650858DD', 'nickname': '嘟嘟2', 'sex': '0', 'cityid': 999999, 'provinceid': 990000, 'userimg': 'http://giantqrcode.kssina.com:8080/giantService/static/upload/userImg/20201228/1609145386053.jpeg', 'email': '', 'name': '陈先生', 'storename': '捷安特震川东路专卖店'}}
请求数据是{}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'token': 'RDJFQ0Q1MEMwNDk2MzM0RDg5RTQ4OUJGNTUzNDIxODNFRTJCQzREQTNBNDZBMjQ0QTZBMUUyNkRFOUY1OEI3QjNBRkQ4QkEwODgzMkZCQzY5M0YwNzc4QUZBRjNGQjE5NkI3MTg4OEI1NkRGRjE4NTgyRTkzRjcxNTc0OEQ5MjI5RTY0MDQzNzJENTAzREEwRkMyQTk4NEJENzJGQTk5RQGIANTGIANT', 'Content-Length': '2'}
响应时间是0.087707


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='ft1.14' class='none'>
    <td class='failCase'><div class='testcase'>test_api_14</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.14')" >
        失败</a>
    <div id='div_ft1.14' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.14').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.14: 当前测试的用例是查询车辆列表
获取到的结果是{'code': 303, 'msg': '登录超时或未登录！'}
请求数据是{}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'token': 'NEFDQ0Y5REVDMTJGMTIzQkQ4MEFDNjBCRDAzQjhCRTk4ODI5RTZGMDhFM0E5OEZCNTQzQzE3MUFFMEJCQjVGOTAzQzRFRUEyRTM5Qjk3ODJCRUMwNkMyMjg4NkFBNUJGODRFMEUwQTFGQjgyMDU3QTVCREI2MTM2N0ZEOTgzRUM3NTUyM0ZCQjMxRkRGOEY0MTQ3MEQ2ODI1NTVFMEFDMQGIANTGIANT', 'Content-Length': '2', 'Content-Type': 'application/json'}
响应时间是0.075008
执行用例出错：None != 303
Traceback (most recent call last):
  File "D:\softwore\python\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "E:\test\GEVapi\test_case\test_http_request.py", line 43, in test_api
    raise e
  File "E:\test\GEVapi\test_case\test_http_request.py", line 38, in test_api
    self.assertEqual(item['expected'], res.json()['code'])
AssertionError: None != 303


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='ft1.15' class='none'>
    <td class='errorCase'><div class='testcase'>test_api_15</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.15')" >
        报错</a>
    <div id='div_ft1.15' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.15').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.15: 当前测试的用例是修改姓名为‘master’成功
获取到的结果是{'timestamp': '2021-10-30T07:34:31.266+00:00', 'status': 500, 'error': 'Internal Server Error', 'message': '', 'path': '/appApi/member/edit'}
请求数据是{'nickname': '嘟嘟2', 'cityid': 999999, 'provinceid': 990000, 'userimg': 'http://giantqrcode.kssina.com:8080/giantService/static/upload/userImg/20201228/1609145386053.jpeg', 'name': '陈先生'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'token': 'RDJFQ0Q1MEMwNDk2MzM0RDg5RTQ4OUJGNTUzNDIxODNFRTJCQzREQTNBNDZBMjQ0QTZBMUUyNkRFOUY1OEI3QjNBRkQ4QkEwODgzMkZCQzY5M0YwNzc4QUZBRjNGQjE5NkI3MTg4OEI1NkRGRjE4NTgyRTkzRjcxNTc0OEQ5MjI5RTY0MDQzNzJENTAzREEwRkMyQTk4NEJENzJGQTk5RQGIANTGIANT', 'Content-Length': '211', 'Content-Type': 'application/json'}
响应时间是0.071695
Traceback (most recent call last):
  File "D:\softwore\python\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "E:\test\GEVapi\test_case\test_http_request.py", line 38, in test_api
    self.assertEqual(item['expected'], res.json()['code'])
KeyError: 'code'


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='ft1.16' class='none'>
    <td class='errorCase'><div class='testcase'>test_api_16</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.16')" >
        报错</a>
    <div id='div_ft1.16' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.16').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.16: 当前测试的用例是发送修改手机验证码成功
获取到的结果是{'timestamp': '2021-10-30T07:34:31.669+00:00', 'status': 500, 'error': 'Internal Server Error', 'message': '', 'path': '/appApi/my/sendEditMobilephoneCode'}
请求数据是{'mobilephone': '15029827670'}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'token': 'NjM1Q0FEODdGNkMxMzg0QkY3Mjk2QTYzNDlGOTk1OUIyNEIwQTk3Mjc1M0FCQkNFNzk0MjZGRTBBMDFBMzdENzM3NDFGNzJERTgxNTQ0ODI5QjQwMTM4RjNCMjkzODA3RDhBMTVGMDQ0MzQzMThCRkY3MUU5NkI3RUQ0M0M0Qzc4NjI4ODA3RDNENUNGQUZBQzcwODg1NTAyNTJFN0ExMgGIANTGIANT', 'Content-Length': '30', 'Content-Type': 'application/json'}
响应时间是0.341717
Traceback (most recent call last):
  File "D:\softwore\python\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "E:\test\GEVapi\test_case\test_http_request.py", line 38, in test_api
    self.assertEqual(item['expected'], res.json()['code'])
KeyError: 'code'


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='ft1.17' class='none'>
    <td class='failCase'><div class='testcase'>test_api_17</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.17')" >
        失败</a>
    <div id='div_ft1.17' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.17').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.17: 当前测试的用例是获取版本更新信息成功
获取到的结果是{'code': 500, 'msg': '不支持的系统！'}
请求数据是{}
请求头是{'User-Agent': 'android2.0.8', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'token': 'QjMyRjI2QkUyMDg3ODgxRDk5NTdBRTJBRkNCMDE0MDE2MkQ5NkVFQjJGOEUwRENBQzU4QkU5OTVEOEZFMUM3N0Q0OUIzRDc1RTFDQzQwMEQ3MDlDREE3QTA1ODRBNTlFMkQzMzQ5MzAwQjYwMUQzRjIxNzZFQ0VFNURGMkMzRDY2NEQ3Q0ZGNTA0QkQ5MTM1NjU0ODIyM0JGOURCNTYxNQGIANTGIANT', 'Content-Length': '2', 'Content-Type': 'application/json'}
响应时间是0.072075
执行用例出错：1 != 500
Traceback (most recent call last):
  File "D:\softwore\python\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "E:\test\GEVapi\test_case\test_http_request.py", line 43, in test_api
    raise e
  File "E:\test\GEVapi\test_case\test_http_request.py", line 38, in test_api
    self.assertEqual(item['expected'], res.json()['code'])
AssertionError: 1 != 500


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='pt1.18' class='hiddenRow'>
    <td class='none'><div class='testcase'>test_api_18</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.18')" >
        通过</a>
    <div id='div_pt1.18' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.18').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt1.18: 当前测试的用例是获取个人信息成功
获取到的结果是{'code': 1, 'msg': '请求成功', 'data': {'userid': 20896337, 'mobilephone': '15029827670', 'token': 'ODU4NDUzRjhFQzE2RDJEMTM4OTAwNkY4Njc5MkZCMjc4MzBERTY5MzdEMjIzNkI0RjkxOURCN0MxOEE5MDNBREMyQTAzMUIxRTE3QzdFNjRFN0NDOEJBMjM5NkI3Nzk1NzgzMzU2N0EyNjQ5MkExMzBCMTc3QzBFN0REQ0ZDNEZEMDNBRTA2OUZDODhCMzQzRDUyRDA4MDVFMTlCQ0ZDOAGIANTGIANT'}}
请求数据是{}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'token': 'ODU4NDUzRjhFQzE2RDJEMTM4OTAwNkY4Njc5MkZCMjc4MzBERTY5MzdEMjIzNkI0RjkxOURCN0MxOEE5MDNBREMyQTAzMUIxRTE3QzdFNjRFN0NDOEJBMjM5NkI3Nzk1NzgzMzU2N0EyNjQ5MkExMzBCMTc3QzBFN0REQ0ZDNEZEMDNBRTA2OUZDODhCMzQzRDUyRDA4MDVFMTlCQ0ZDOAGIANTGIANT', 'Content-Length': '2', 'Content-Type': 'application/json'}
响应时间是0.073731


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='ft1.19' class='none'>
    <td class='errorCase'><div class='testcase'>test_api_19</div></td>
    <td colspan='5' align='center'>
    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.19')" >
        报错</a>
    <div id='div_ft1.19' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.19').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.19: 当前测试的用例是请求'我的-主页'成功
获取到的结果是{'timestamp': '2021-10-30T07:35:03.138+00:00', 'status': 500, 'error': 'Internal Server Error', 'message': '', 'path': '/appApi/my/index'}
请求数据是{}
请求头是{'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'token': 'ODU4NDUzRjhFQzE2RDJEMTM4OTAwNkY4Njc5MkZCMjc4MzBERTY5MzdEMjIzNkI0RjkxOURCN0MxOEE5MDNBREMyQTAzMUIxRTE3QzdFNjRFN0NDOEJBMjM5NkI3Nzk1NzgzMzU2N0EyNjQ5MkExMzBCMTc3QzBFN0REQ0ZDNEZEMDNBRTA2OUZDODhCMzQzRDUyRDA4MDVFMTlCQ0ZDOAGIANTGIANT', 'Content-Length': '2', 'Content-Type': 'application/json'}
响应时间是31.109757
Traceback (most recent call last):
  File "D:\softwore\python\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "E:\test\GEVapi\test_case\test_http_request.py", line 38, in test_api
    self.assertEqual(item['expected'], res.json()['code'])
KeyError: 'code'


        </pre>
    </div>
    <!--css div popup end-->
    </td>
</tr>

<tr id='total_row'>
    <td>总计</td>
    <td>19</td>
    <td>9</td>
    <td>3</td>
    <td>7</td>
    <td>&nbsp;</td>
</tr>
</table>

<div id='ending'>&nbsp;</div>
</body>
</html>
